﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.ComponentModel;

namespace MyCalendar.Utils
{
    public class ColorHelper : INotifyPropertyChanged
    {

        private Brush mBackground = new SolidColorBrush (Colors.Gray);
        private Brush mTextColor = new SolidColorBrush (Colors.White);

        public event PropertyChangedEventHandler PropertyChanged;

        public void OnPropertyChanged (string pName)
        {
            if (PropertyChanged != null)
            {
                PropertyChanged (this, new PropertyChangedEventArgs (pName));
            }
        }

        public ColorHelper ()
        {
        }

        public ColorHelper (Brush pBackground , Brush pTextColor)
        {
            BackgroundColor = pBackground;
            TextColor = pTextColor;
        }

        public Brush BackgroundColor
        {
            get
            {
                return mBackground;
            }
            set
            {
                mBackground = value;
                OnPropertyChanged ("BackgroundColor");
            }
        }

        public Brush TextColor
        {
            get
            {
                return mTextColor;
            }
            set
            {
                mTextColor = value;
                OnPropertyChanged ("TextColor");
            }
        }

    }
}
